package com.zcl.util;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.zcl.service.LogService;
@Controller
public class UserOperation {
	@Autowired
	LogService logService;
	/**
	 * 操作记录
	 * @param operContent
	 * @return
	 */
	public static Map<String, String> operationRecord(String operContent) {
		Map<String, String> map = new HashMap<String,String>();
		String id = UUID.randomUUID().toString();
		String operUser = GetCurrentUserDetails.currentUser().getUsername();
		String operTime = DateFormat.formate1();
		map.put("id", id);
		map.put("operUser", operUser);
		map.put("operContent", operContent);
		map.put("operTime", operTime);
		return map;
	}
}
